/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ps.server.classes;

/**
 *
 * @author Ricardo
 */
public class tax_rules {

    private String id;
    private String id_tax_rules_group;
    private String id_state;
    private String id_country;
    private String zipcode_from;
    private String zipcode_to;
    private String id_tax;
    private String behavior;
    private String description;
    private int column = 9;

    public String getBehavior() {
        return behavior;
    }

    public void setBehavior(String behavior) {
        this.behavior = behavior;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getId_country() {
        return id_country;
    }

    public void setId_country(String id_country) {
        this.id_country = id_country;
    }

    public String getId_state() {
        return id_state;
    }

    public void setId_state(String id_state) {
        this.id_state = id_state;
    }

    public String getId_tax() {
        return id_tax;
    }

    public void setId_tax(String id_tax) {
        this.id_tax = id_tax;
    }

    public String getId_tax_rules_group() {
        return id_tax_rules_group;
    }

    public void setId_tax_rules_group(String id_tax_rules_group) {
        this.id_tax_rules_group = id_tax_rules_group;
    }

    public String getZipcode_from() {
        return zipcode_from;
    }

    public void setZipcode_from(String zipcode_from) {
        this.zipcode_from = zipcode_from;
    }

    public String getZipcode_to() {
        return zipcode_to;
    }

    public void setZipcode_to(String zipcode_to) {
        this.zipcode_to = zipcode_to;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public int getColumn() {
        return column;
    }

    public String toXML() {
        String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
        xml += "<prestashop xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n";
        xml += "<tax_rule>\n";
        xml += "<id></id>\n";
        xml += "<id_tax_rules_group></id_tax_rules_group>\n";
        xml += "<id_state></id_state>\n";
        xml += "<id_country></id_country>\n";
        xml += "<zipcode_from></zipcode_from>\n";
        xml += "<zipcode_to></zipcode_to>\n";
        xml += "<id_tax></id_tax>\n";
        xml += "<behavior></behavior>\n";
        xml += "<description></description>\n";
        xml += "</tax_rule>\n";
        xml += "</prestashop>";
        return xml;
    }

    public String[] GetMetaData() {
        return new String[]{
                    "id",
                    "id_tax_rules_group",
                    "id_state",
                    "id_country",
                    "zipcode_from",
                    "zipcode_to",
                    "id_tax",
                    "behavior",
                    "description"
                };
    }
}
